'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert('Roles', [
      {
        roleName: "业务办理",
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        roleName: "业务总和",
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        roleName: "话务",
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        roleName: "财政",
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        roleName: "管理员",
        createdAt: new Date(),
        updatedAt: new Date()
      }], {});
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
    await queryInterface.bulkDelete('Roles', null, {});
  }
};
